package cn.itcast.user.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author wz
 * @description:
 * @date 2021-11-20
 */
@Component  // 创建类对象,并存放到IOC容器
@Data
@ConfigurationProperties(prefix = "pattern") // 将解析到的配置信息,封装到当前对象中
public class PatternProperties {
    private String dateformat;
    private String test;
}
